package com.ruoyi.security.mapper;

import java.util.List;
import com.ruoyi.security.domain.InspectionLocation;
import com.ruoyi.security.domain.vo.InspectionLocationVO;
import org.apache.ibatis.annotations.Param;

/**
 * 巡检地点Mapper接口
 *
 * @author cjie
 * @date 2022-04-14
 */
public interface InspectionLocationMapper {
    /**
     * 查询巡检地点
     *
     * @param id 巡检地点ID
     * @return 巡检地点
     */
     InspectionLocation selectInspectionLocationById(String id);

    /**
     * 查询巡检地点列表
     *
     * @param inspectionLocation 巡检地点
     * @return 巡检地点集合
     */
     List<InspectionLocation> selectInspectionLocationList(InspectionLocation inspectionLocation);

    /**
     * 新增巡检地点
     *
     * @param inspectionLocation 巡检地点
     * @return 结果
     */
     int insertInspectionLocation(InspectionLocation inspectionLocation);

    /**
     * 修改巡检地点
     *
     * @param inspectionLocation 巡检地点
     * @return 结果
     */
     int updateInspectionLocation(InspectionLocation inspectionLocation);

    /**
     * 删除巡检地点
     *
     * @param id 巡检地点ID
     * @return 结果
     */
     int deleteInspectionLocationById(String id);

    /**
     * 批量删除巡检地点
     *
     * @param ids 需要删除的数据ID
     * @return 结果
     */
     int deleteInspectionLocationByIds(String[] ids);

    InspectionLocationVO selectInspectionLocationByQRCode(@Param("type") String type, @Param("qrCode") String qrCode);
}
